<?php
	include ("../php/seguridad/moduloSeguridad.php");
	include ("../php/seguridad/funcionesSeguridad.php");
?>
<!DOCTYPE html>
<!--

TABLE OF CONTENTS.

Use search to find needed section.

=====================================================

|  1. $BODY                 |  Body                 |
|  2. $MAIN_NAVIGATION      |  Main navigation      |
|  3. $NAVBAR_ICON_BUTTONS  |  Navbar Icon Buttons  |
|  4. $MAIN_MENU            |  Main menu            |
|  5. $CONTENT              |  Content              |

=====================================================

-->


<!--[if IE 8]>         <html class="ie8"> <![endif]-->
<!--[if IE 9]>         <html class="ie9 gt-ie8"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="gt-ie8 gt-ie9 not-ie"> <!--<![endif]-->
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>Empleados</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">

	<meta name="author" content="Abel Chocano Gómez, Carlos del Prado Mota">

	<!-- Favicon -->
	<link rel="shortcut icon" type="image/x-icon" href="assets/images/miImg/favicon.ico" />

	<!-- Open Sans font from Google CDN -->
	<link href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,600,700,300&subset=latin" rel="stylesheet" type="text/css">

	<!-- Pixel Admin's stylesheets -->
	<link href="assets/stylesheets/bootstrap.min.css" rel="stylesheet" type="text/css">
	<link href="assets/stylesheets/pixel-admin.min.css" rel="stylesheet" type="text/css">
	<link href="assets/stylesheets/widgets.min.css" rel="stylesheet" type="text/css">
	<link href="assets/stylesheets/pages.min.css" rel="stylesheet" type="text/css">
	<link href="assets/stylesheets/rtl.min.css" rel="stylesheet" type="text/css">
	<link href="assets/stylesheets/themes.min.css" rel="stylesheet" type="text/css">

	<!--[if lt IE 9]>
		<script src="assets/javascripts/ie.min.js"></script>
	<![endif]-->

	<!-- Get jQuery from Google CDN -->
	<!--[if !IE]> -->
		<script type="text/javascript"> window.jQuery || document.write('<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js">'+"<"+"/script>"); </script>
	<!-- <![endif]-->
	<!--[if lte IE 9]>
		<script type="text/javascript"> window.jQuery || document.write('<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">'+"<"+"/script>"); </script>
	<![endif]-->

	<!-- Pixel Admin's javascripts -->
	<script src="assets/javascripts/bootstrap.min.js"></script>
	<script src="assets/javascripts/pixel-admin.min.js"></script>

	<!-- Include one of jTable styles. -->
	<link href="../javascripts/libs/jtable.2.4.0/themes/metro/blue/jtable.min.css" rel="stylesheet" type="text/css" />
	 
	<!-- Include jTable script file. -->
	<script src="../javascripts/libs/jquery-ui-1.10.4/jquery-ui.js" type="text/javascript"></script>
	<script src="../javascripts/libs/jtable.2.4.0/jquery.jtable.js" type="text/javascript"></script>

	<!-- Css y js Propios -->
	<link href="assets/stylesheets/miCSS/miCss_informes_ventas.css" rel="stylesheet" type="text/css">
	<link href="assets/stylesheets/miCSS/miCss_ver_empleados.css" rel="stylesheet" type="text/css">
	<script src="assets/javascripts/miJS/miJS_signout.js" type="text/javascript" ></script>
	<script src="assets/javascripts/miJS/empleados/miJS_ver_empleados.js" type="text/javascript" ></script>

</head>


<!-- 1. $BODY ======================================================================================
	
	Body

	Classes:
	* 'theme-{THEME NAME}'
	* 'right-to-left'      - Sets text direction to right-to-left
	* 'main-menu-right'    - Places the main menu on the right side
	* 'no-main-menu'       - Hides the main menu
	* 'main-navbar-fixed'  - Fixes the main navigation
	* 'main-menu-fixed'    - Fixes the main menu
	* 'main-menu-animated' - Animate main menu
-->
<body class="theme-default main-menu-animated">
<script>var init = [];</script>
<!-- Demo script --> <script src="assets/demo/demo.js"></script> <!-- / Demo script -->
<div id="main-wrapper">


<!-- 2. $MAIN_NAVIGATION ===========================================================================

	Main navigation
-->
	<div id="main-navbar" class="navbar navbar-inverse " role="navigation">
		<!-- Main menu toggle -->
		<button type="button" id="main-menu-toggle"><i class="navbar-icon fa fa-bars icon"></i><span class="hide-menu-text">OCULTAR MENÚ</span></button>
		
		<div class="navbar-inner">
			<!-- Main navbar header -->
			<div class="navbar-header">

				<!-- Logo -->
				<a href="panel-control.html" class="navbar-brand">
					<div class="panel_logo"><img alt="Cloud Cash Register" src="assets/images/miImg/logo_c2r.png";></div>
					Cloud Cash Register
				</a>

				<!-- Main navbar toggle -->
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-navbar-collapse"><i class="navbar-icon fa fa-bars"></i></button>

			</div> <!-- / .navbar-header -->

			<div id="main-navbar-collapse" class="collapse navbar-collapse main-navbar-collapse">
				<div>

					<div class="right clearfix">
						<ul class="nav navbar-nav pull-right right-navbar-nav">

<!-- 3. $NAVBAR_ICON_BUTTONS =======================================================================

							Navbar Icon Buttons

							NOTE: .nav-icon-btn triggers a dropdown menu on desktop screens only. On small screens .nav-icon-btn acts like a hyperlink.

							Classes:
							* 'nav-icon-btn-info'
							* 'nav-icon-btn-success'
							* 'nav-icon-btn-warning'
							* 'nav-icon-btn-danger' 
-->

							<li class="dropdown">
								<a href="#" class="dropdown-toggle user-menu" data-toggle="dropdown">
									<img src="assets/demo/avatars/1.jpg" alt="">
									<span><?php echo $_SESSION['nombreUsuario']?></span>
								</a>
								<ul class="dropdown-menu">
									<li><a href="#"><i class="dropdown-icon fa fa-cog"></i>&nbsp;&nbsp;Configuración</a></li>
									<li class="divider"></li>
									<li><a href="#" id="a_desconectar_sesion"><i class="dropdown-icon fa fa-power-off"></i>&nbsp;&nbsp;Desconectar</a></li>
									<input type="hidden" name="signout_desconexion_token_CSRF" id="signout_desconexion_token_CSRF" value="<?php echo generadorTokenAntiCSRF('form_desconexion')?>">
								</ul>
							</li>
						</ul> <!-- / .navbar-nav -->
					</div> <!-- / .right -->
				</div>
			</div> <!-- / #main-navbar-collapse -->
		</div> <!-- / .navbar-inner -->
	</div> <!-- / #main-navbar -->
<!-- /2. $END_MAIN_NAVIGATION -->

	<div id="main-menu" role="navigation">
		<div id="main-menu-inner">
			<div class="menu-content top" id="menu-content-demo">
				<!-- Menu custom content demo
					 CSS:        styles/pixel-admin-less/demo.less or styles/pixel-admin-scss/_demo.scss
					 Javascript: html/assets/demo/demo.js
				 -->
				<div>
					<div class="text-bg"><span class="text-slim">Bienvenido,</span><br><span class="text-semibold"><?php echo $_SESSION['nombreUsuario']?></span></div>

					<img src="assets/demo/avatars/1.jpg" alt="" class="">
					<div class="btn-group">
						<a href="#" class="btn btn-xs btn-primary btn-outline dark"><i class="fa fa-cog"></i></a>
						<a href="#" class="btn btn-xs btn-danger btn-outline dark" id="a_icono_desconectar_sesion"><i class="fa fa-power-off"></i></a>
					</div>
					<a href="#" class="close">&times;</a>
				</div>
			</div>
			<ul class="navigation">
				<li>
					<a href="panel-control.html"><i class="menu-icon fa fa-desktop"></i><span class="mm-text">Resumen del mes</span></a>
				</li>
				<li>
					<a href="ver-productos.html"><i class="menu-icon fa fa-th-list"></i><span class="mm-text">Productos</a>
				</li>
				<li>
					<a href="ver-empleados.html"><i class="menu-icon fa fa-users"></i><span class="mm-text">Empleados</a>
				</li>
				<li class="mm-dropdown">
					<a href="#"><i class="menu-icon fa fa-bar-chart-o"></i><span class="mm-text">Informes</a>
					<ul>
						<li>
							<a tabindex="-1" href="informes-ventas.html"><i class="menu-icon fa fa-shopping-cart"></i><span class="mm-text">Ventas</span></a>
						</li>
						<li>
							<a tabindex="-1" href="informes-devoluciones.html"><i class="menu-icon fa fa-trash-o"></i><span class="mm-text">Devoluciones</span></a>
						</li>
						<li>
							<a tabindex="-1" href="informes-productos.html"><i class="menu-icon fa fa-inbox"></i><span class="mm-text">Productos</span></a>
						</li>
						<li>
							<a tabindex="-1" href="informes-empleados.html"><i class="menu-icon fa fa-user"></i><span class="mm-text">Empleados</span></a>
						</li>
						<li>
							<a tabindex="-1" href="informes-historico.html"><i class="menu-icon fa fa-list-alt"></i><span class="mm-text">Histórico</span></a>
						</li>
					</ul>
				</li>
				<li>
					<a href="ticket.html"><i class="menu-icon fa fa-list-alt"></i><span class="mm-text">Ticket</span></a>
				</li>
				<li>
					<a href="#"><i class="menu-icon fa fa-cog"></i><span class="mm-text">Configuracion</span></a>
				</li>
			</ul> <!-- / .navigation -->
			<div class="menu-content">
				<a href="#" class="btn btn-primary btn-block btn-outline dark" id="boton_panelizq_desconectar_sesion"><i class="fa fa-power-off"></i> Desconectar</a>
			</div>
		</div> <!-- / #main-menu-inner -->
	</div> <!-- / #main-menu -->
<!-- /4. $MAIN_MENU -->

	<div id="content-wrapper">

<!-- 5. $CONTENT =================================================================================== -->
		<!-- CABECERA -->
		<div class="page-header">
			
			<div class="row">
				<!-- Page header, center on small screens -->
				<h1 class="col-xs-12 col-sm-4 text-center text-left-sm"><i class="fa fa-users page-header-icon"></i>&nbsp;&nbsp;Empleados</h1>

				<div class="col-xs-12 col-sm-8">
					<div class="row">
						<hr class="visible-xs no-grid-gutter-h">
						
						<!-- "Icono de añadir empleado-->

						<!-- <div class="pull-right col-xs-12 col-sm-auto"><a href="#" onclick="window.location = '../php/productos/exportar_productos_formato_excel.php'" class="btn btn-success btn-labeled" style="width: 100%;"><span class="btn-label icon fa fa-cloud-download"></span>Exportar empleados a Excel</a></div> -->

						<div class="pull-right col-xs-12 col-sm-auto"><a href="#" class="btn btn-success btn-labeled" id="boton_nuevo_empleado" style="width: 100%;"><span class="btn-label icon fa fa-plus"></span>Añadir empleado</a></div>

						<!-- Margin -->
						<div class="visible-xs clearfix form-group-margin"></div>

					</div>
				</div>
			</div>
		</div> <!-- / .page-header -->


		<!-- AÑADIR EMPLEADO -->
				<div class="row">
			<div class="col-sm-12">
				<div class="panel" id="formulario_nuevo_empleado" style="display: none;">
					<div class="panel-heading">
						<span class="panel-title">Añadir Empleado</span>
						<div style="position:relative; float:right; "><a href="#" id="icono_cancelar_nuevo_empleado"><i class="fa fa-times text-danger text-lg"></i></a></div>
					</div>
					<div class="panel-body no-padding">

						<div class="wizard no-margin" id="wizard-forms">

							<!-- PASOS -->
							<div class="wizard-wrapper no-border">
								<ul class="wizard-steps">
									<!-- PASO 1: DETALLES-->
									<li data-target="#wizard-detalles" >
										<span class="wizard-step-number">1</span>
										<span class="wizard-step-caption">
											Detalles
											<span class="wizard-step-description">Datos del empleado</span>
										</span>
									</li>
									<!-- PASO 2: IMAGEN-->
									<li data-target="#wizard-imagen"> <!-- ! Remove space between elements by dropping close angle -->
										<span class="wizard-step-number">2</span>
										<span class="wizard-step-caption">
											Imágen
											<span class="wizard-step-description">Asigna una imágen</span>
										</span>
									</li>
									<!-- PASO 3: FINALIZAR-->
									<li data-target="#wizard-finish"> <!-- ! Remove space between elements by dropping close angle -->
										<span class="wizard-step-number">3</span>
										<span class="wizard-step-caption">
											Finalizar
										</span>
									</li>
								</ul> <!-- / .wizard-steps -->
							</div> <!-- / .wizard-wrapper -->
							<!-- / Steps -->

							<!-- Pages -->
							<div class="wizard-content panel no-margin no-border-hr no-border-b no-padding-hr">

								<!-- DETALLES -->
								<form class="wizard-pane form-bordered" id="wizard-detalles" style="display: none;">

									<!-- Nombre -->
									<div class="form-group no-padding-t no-border-t panel-padding-h">
										<label for="nombre" class="col-md-3 control-label">Nombre</label>
										<div class="col-md-9">
											<input type="text" name="nombre" placeholder="Nombre del empleado..." class="form-control">
										</div>
									</div>

									<!-- Apellidos -->
									<div class="form-group panel-padding-h">
										<label for="apellidos" class="col-md-3 control-label">Apellidos</label>
										<div class="col-md-9">
											<input type="text" name="apellidos" placeholder="Apellidos del empleado..." class="form-control">
										</div>
									</div>

									<!-- Puesto -->
									<div class="form-group panel-padding-h">
										<label for="puesto" class="col-md-3 control-label">Puesto</label>
										<div class="col-md-9">
											<input type="text" name="puesto" placeholder="Puesto que ocupa..." class="form-control">
										</div>
									</div>

									<!-- Horario -->
									<div class="form-group panel-padding-h">
										<label for="horario" class="col-md-3 control-label">Horario</label>
										<div class="col-md-9">
											<input type="text" name="horario" placeholder="Horario del empleado... ejem: 08:00 - 15:00" class="form-control">
										</div>
									</div>
									
									<hr>

									<div class="panel-padding-h">
										<button type="submit" class="btn btn-primary pull-right">Siguiente</button>
									</div>
								</form> <!-- / .wizard-pane -->
								<!-- / DETALLES-->

								<!-- IMÁGEN -->
								<form class="wizard-pane form-bordered" id="wizard-imagen" style="display: none;">
									<!-- Carga de imágenes -->
									<div id="subida_imagen">
										<div class="form-group no-padding-t no-border-t panel-padding-h">
											<div id="dropzonejs-example" class="dropzone-box">
												<div class="dz-default dz-message">
													<i class="fa fa-cloud-upload"></i>
													Elige su imágen<br><span class="dz-text-small">Haz click aquí...</span>
												</div>
												<form action="../php/upload.php"></form>
											</div>
										</div>

										<hr>

										<div class="pull-right panel-padding-h">
											<button type="button" class="btn wizard-prev-step-btn">Atrás</button>&nbsp;&nbsp;
											<button type="submit" class="btn btn-primary ">Siguiente</button>
										</div>
									</div>
								</form> <!-- / .wizard-pane -->
								<!-- / IMAGEN -->

								<!-- Finish page -->
								<div class="wizard-pane form-bordered" id="wizard-finish" style="display: none;">
									<div align="center" id="mensaje-confirmacion-nuevo-empleado">
									</div>
									
									<hr>

									<!-- Nombre -->
									<div class="form-group no-padding-t no-border-t panel-padding-h">
										<label for="nombreResumen" class="col-md-3 control-label">Nombre</label>
										<div class="col-md-9">
											<input type="text" name="nombreResumen" class="form-control" disabled>
										</div>
									</div>

									<!-- Apellidos -->
									<div class="form-group panel-padding-h">
										<label for="apellidosResumen" class="col-md-3 control-label">Apellidos</label>
										<div class="col-md-9">
											<input type="text" name="apellidosResumen" class="form-control" disabled>
										</div>
									</div>

									<!-- Puesto -->
									<div class="form-group panel-padding-h">
										<label for="puestoResumen" class="col-md-3 control-label">Puesto</label>
										<div class="col-md-9">
											<input type="text" name="puestoResumen" class="form-control" disabled>
										</div>
									</div>

									<!-- Horario -->
									<div class="form-group panel-padding-h">
										<label for="horarioResumen" class="col-md-3 control-label">Horario</label>
										<div class="col-md-9">
											<input type="text" name="horarioResumen" class="form-control" disabled>
										</div>
									</div>

									<!-- Imagen -->
									<div class="form-group panel-padding-h">
										<label class="col-md-3 control-label">Imágen</label>
										<div class="col-md-9" id="imagen_empleado_subida">
										</div>
									</div>

									<hr>

									<div class="pull-right panel-padding-h">
										<div class="pull-right col-xs-12 col-sm-auto"><a href="#" class="btn btn-danger btn-labeled" id="boton_finalizar_nuevo_empleado" style="width: 100%;">Finalizar</a></div>
										<div class="pull-right col-xs-12 col-sm-auto"><a href="#" class="btn btn-success btn-labeled" id="boton_otro_nuevo_empleado" style="width: 100%;"><span class="btn-label icon fa fa-plus"></span>Añadir otro empleado</a></div>
									</div>
								</div> <!-- / .wizard-pane -->
								<!-- / Finish page -->

							</div> <!-- / .wizard-content -->
							<!-- / Pages -->

						</div> <!-- / .wizard -->
					</div>
				</div>
			</div>
			<input type="hidden" name="nuevo_empleado_token_CSRF" id="nuevo_empleado_token_CSRF" value="<?php
					echo generadorTokenAntiCSRF('nuevo_empleado')?>">
		</div><!-- / AÑADIR EMPLEADO -->

		<div id="loaderInformacionEmpleados" class="loader"></div>
		<div class="row text-center" id="contenedorEmpleados">	
		</div>
		<input type="hidden" name="informacion_empleados_token_CSRF" id="informacion_empleados_token_CSRF" value="<?php
					echo generadorTokenAntiCSRF('informacion_empleados')?>">

	</div> <!-- / #content-wrapper -->
	<div id="main-menu-bg"></div>
</div> <!-- / #main-wrapper -->

<script type="text/javascript">
	init.push(function () {
		// Javascript code here
	});
	window.PixelAdmin.start(init);
</script>


</body>
</html>